package com.qijian.production.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 非标准定额申请单-任务清单对象 main_point_order_item
 *
 * @author qijian
 * @date 2023-12-06
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_point_order_item")
public class PointOrderItem extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long mainId;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工单id")
    private Long workOrderDetailId;

    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String itemName;

    @Excel(name = "工序类型")
    @ApiModelProperty(value = "工序类型")
    private String processTypeName;

    @Excel(name = "工序")
    @ApiModelProperty(value = "工序")
    private String processName;

    @Excel(name = "数量")
    @ApiModelProperty(value = "数量")
    private BigDecimal qty;

    @Excel(name = "加工定额(元)")
    @ApiModelProperty(value = "加工定额(元)")
    private BigDecimal quota;

    @Excel(name = "加工小时")
    @ApiModelProperty(value = "加工小时")
    private BigDecimal hours;

    @Excel(name = "时薪")
    @ApiModelProperty(value = "时薪")
    private BigDecimal wage;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty("工单开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date workStartTime;

    @ApiModelProperty("工单结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date workEndTime;



    @TableField(exist = false)
    private String projectNo;

    @TableField(exist = false)
    private String projectMachineNo;

    @TableField(exist = false)
    private String machineNo;

    @TableField(exist = false)
    private String projectName;

    @TableField(exist = false)
    private Long projectId;

    @ApiModelProperty(value = "开工令项目经理名")
    @TableField(exist = false)
    private String nickName;


}
